import{request} from "./request";

export function getsongsheetcategory() { //获取歌单分类
    return request({
        url: '/playlist/hot',
        withCredentials: true
    })
}

export function getsongsheetfromtag(tag) { //基于标签的10个歌单
    return request({
        url: '/top/playlist?limit=6',
        params:{
            cat:tag,
        },
        withCredentials: true
    })
}

export function getsongsheetrecommand(id) { //获取相关歌单推荐
    return request({
        url: '/related/playlist',
        params:{
            id:id
        },
        withCredentials: true
    })
}
